package cn.wjzhang.middle.factory;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;

/**
 * ========================
 * 心知初始化
 *
 * @author wjzhang
 * @version v1.0
 * ========================
 * @date 2023/7/5 10:36
 */
@NoArgsConstructor
public class SeniverseFactory {
    // 请求域名
    private static String host;
    // 授权
    private static String key;


    public static void init(String host, String key) {
        SeniverseFactory.setHost(host);
        SeniverseFactory.setKey(key);
    }
    public static void setHost(String host) {
        SeniverseFactory.host = host;
    }

    public static void setKey(String key) {
        SeniverseFactory.key = key;
    }

    public static String getHost() {
        return host;
    }
    public static String getKey() {
        return key;
    }
}
